# It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Desktop Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description - Block all External storage devices from mounting # Note - Kindly download the file from the description and add it as a attachment to the custom script unzip dcblockusb.zip chmod 777 dcblockusb chown root:staff dcblockusb ./dcblockusb >/dev/null 2>&1 & disown ret=$? if [ $ret == "0" ]; then echo "Sucessfully executed code" else echo "Error in executing code" fi exit $ret